package cn.starrysky108.simpleerp.inventory.entity;

import cn.starrysky108.simpleerp.core.base.BaseEntity;
import cn.starrysky108.simpleerp.core.enums.InventoryOutTypeEnum;
import cn.starrysky108.simpleerp.core.enums.OrderStatusEnum;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.*;

/**
 * <p>
 * 出库单
 * </p>
 *
 * @author Carl Lee
 * @since 2021-08-14
 */
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@EqualsAndHashCode(callSuper = true)
@TableName("inventory_out")
@ApiModel(value = "InventoryOut对象", description = "出库单")
public class InventoryOut extends BaseEntity {

    private static final long serialVersionUID = 1L;


    @ApiModelProperty(value = "流水号")
    @TableField("serial_number")
    private String serialNumber;

    @ApiModelProperty(value = "备注")
    @TableField("note")
    private String note;

    @ApiModelProperty(value = "数量")
    @TableField("count")
    private Long count;

    @ApiModelProperty(value = "出库类别")
    @TableField("inventory_out_category")
    private Integer inventoryOutCategory;

    @ApiModelProperty(value = "操作人id")
    @TableField("user_id")
    private Long userId;

    @ApiModelProperty(value = "管理员/审核人id")
    @TableField("administrator_id")
    private Long administratorId;

    @ApiModelProperty(value = "订单状态")
    @TableField("status")
    private OrderStatusEnum status;

    @ApiModelProperty(value = "是否是固定资产,默认false")
    @TableField("is_fixed_assets")
    private Boolean isFixedAssets;


    @ApiModelProperty(value = "来源类型")
    @TableField("type")
    private InventoryOutTypeEnum type;


}
